const mongoose = require('mongoose');
//创建文档结构对象
let countrySchema = new mongoose.Schema({
  name: String,
  children: [{
    name: String,
    children: [{
        name:String
    }]
  }]
});
let CountryModel = mongoose.model('Country', countrySchema);
//暴露模型对象
module.exports = CountryModel